<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>代理的使用</title>
</head>
<body>
    
</body>
<script>
    const target = {
        name: '蒋皓天',
        sex: 'male'
    }
    handler = {
        get(trapTarget, property, receiver) {
            
        }
    }
    let proxy = new Proxy(target, handler)

    console.log('target:', target.name)
    console.log('proxy:', proxy.sex)
</script>
</html>